package com.cskaoyan.day1;

import com.sun.org.apache.xerces.internal.impl.xs.SchemaNamespaceSupport;

import java.util.Scanner;

public class PrintAdd {
    public static void main(String[] args) {
        int sum = 0;
        int number;
        String str = "";
        Scanner scanner = new Scanner(System.in);
        do {
            number = scanner.nextInt();
            sum += number;
            str = str + number + "+";

        } while (number != 0);
        str = str.substring(0,str.length()-3);
        System.out.println(str + "=" + sum);
    }
}
